

package practicabeta;

import com.mysql.jdbc.Connection;
import com.mysql.jdbc.PreparedStatement;
import com.mysql.jdbc.Statement;
import com.mysql.jdbc.jdbc2.optional.MysqlDataSource;
import java.awt.Color;
import java.awt.Dimension;
import java.awt.Toolkit;
import java.io.File;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.util.logging.Level;
import java.util.logging.Logger;
import javax.sound.sampled.AudioSystem;
import javax.swing.JFrame;
import javax.swing.JOptionPane;

/**
 *
 * @author mYnOr
 */
public class LlantasFurgon extends javax.swing.JFrame {
javax.sound.sampled.Clip sonido;
  // areglo donde guardare todos los id de los numeros de las llantas 
int id[]= new int[10];
  int[] num = new int[8]; // arreglo de numeros
   int resultado;
   int codpaquete;
   boolean error = false;
   boolean completo = false;

    public LlantasFurgon() {
        initComponents();
    }

    /** This method is called from within the constructor to
     * initialize the form.
     * WARNING: Do NOT modify this code. The content of this method is
     * always regenerated by the Form Editor.
     */
    @SuppressWarnings("unchecked")
    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
    private void initComponents() {

        jLabel2 = new javax.swing.JLabel();
        cd = new javax.swing.JTextField();
        jLabel11 = new javax.swing.JLabel();
        tdd = new javax.swing.JTextField();
        jLabel10 = new javax.swing.JLabel();
        tdi = new javax.swing.JTextField();
        jLabel14 = new javax.swing.JLabel();
        tid = new javax.swing.JTextField();
        jLabel12 = new javax.swing.JLabel();
        jLabel7 = new javax.swing.JLabel();
        jLabel5 = new javax.swing.JLabel();
        dii = new javax.swing.JTextField();
        jLabel6 = new javax.swing.JLabel();
        did = new javax.swing.JTextField();
        ddi = new javax.swing.JTextField();
        jLabel4 = new javax.swing.JLabel();
        ddd = new javax.swing.JTextField();
        tii = new javax.swing.JTextField();
        jButton1 = new javax.swing.JButton();
        jButton3 = new javax.swing.JButton();

        setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);

        jLabel2.setText("C o d i g o ");

        cd.setBackground(new java.awt.Color(0, 0, 0));
        cd.setForeground(new java.awt.Color(255, 255, 255));
        cd.setText("Auto_Increment");
        cd.setEnabled(false);
        cd.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                cdActionPerformed(evt);
            }
        });

        jLabel11.setIcon(new javax.swing.ImageIcon(getClass().getResource("/Imagenes Proy Supervisada/ImagenLlanta.png"))); // NOI18N

        jLabel10.setIcon(new javax.swing.ImageIcon(getClass().getResource("/Imagenes Proy Supervisada/ImagenLlanta.png"))); // NOI18N

        jLabel14.setIcon(new javax.swing.ImageIcon(getClass().getResource("/Imagenes Proy Supervisada/ImagenLlanta.png"))); // NOI18N

        jLabel12.setIcon(new javax.swing.ImageIcon(getClass().getResource("/Imagenes Proy Supervisada/ImagenLlanta.png"))); // NOI18N

        jLabel7.setIcon(new javax.swing.ImageIcon(getClass().getResource("/Imagenes Proy Supervisada/ImagenLlanta.png"))); // NOI18N

        jLabel5.setIcon(new javax.swing.ImageIcon(getClass().getResource("/Imagenes Proy Supervisada/ImagenLlanta.png"))); // NOI18N

        jLabel6.setIcon(new javax.swing.ImageIcon(getClass().getResource("/Imagenes Proy Supervisada/ImagenLlanta.png"))); // NOI18N

        ddi.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                ddiActionPerformed(evt);
            }
        });

        jLabel4.setIcon(new javax.swing.ImageIcon(getClass().getResource("/Imagenes Proy Supervisada/ImagenLlanta.png"))); // NOI18N

        jButton1.setText("Ingresar");
        jButton1.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButton1ActionPerformed(evt);
            }
        });

        jButton3.setText("Cancerlar");
        jButton3.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButton3ActionPerformed(evt);
            }
        });

        javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
        getContentPane().setLayout(layout);
        layout.setHorizontalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()
                .addGap(214, 214, 214)
                .addComponent(jButton1)
                .addGap(18, 18, 18)
                .addComponent(jButton3)
                .addGap(33, 33, 33))
            .addGroup(layout.createSequentialGroup()
                .addGap(36, 36, 36)
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                    .addComponent(tii)
                    .addComponent(dii, javax.swing.GroupLayout.PREFERRED_SIZE, 41, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(layout.createSequentialGroup()
                        .addComponent(jLabel5)
                        .addGap(18, 18, 18)
                        .addComponent(jLabel7))
                    .addGroup(layout.createSequentialGroup()
                        .addComponent(jLabel11)
                        .addGap(18, 18, 18)
                        .addComponent(jLabel14)))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                    .addComponent(tid)
                    .addComponent(did, javax.swing.GroupLayout.PREFERRED_SIZE, 45, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addGap(55, 55, 55)
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false)
                    .addComponent(tdi)
                    .addComponent(ddi, javax.swing.GroupLayout.PREFERRED_SIZE, 46, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(jLabel10)
                    .addComponent(jLabel4))
                .addGap(18, 18, 18)
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(jLabel6)
                    .addComponent(jLabel12))
                .addGap(18, 18, 18)
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                    .addComponent(ddd)
                    .addComponent(tdd, javax.swing.GroupLayout.PREFERRED_SIZE, 51, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addGap(33, 33, 33))
            .addGroup(layout.createSequentialGroup()
                .addContainerGap()
                .addComponent(jLabel2)
                .addGap(18, 18, 18)
                .addComponent(cd, javax.swing.GroupLayout.PREFERRED_SIZE, 143, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addContainerGap(231, Short.MAX_VALUE))
        );
        layout.setVerticalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()
                .addGap(20, 20, 20)
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabel2)
                    .addComponent(cd, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 257, Short.MAX_VALUE)
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                    .addGroup(layout.createSequentialGroup()
                        .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                            .addComponent(dii, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(jLabel5)
                            .addComponent(jLabel7))
                        .addGap(49, 49, 49)
                        .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                            .addComponent(jLabel11)
                            .addComponent(jLabel14)
                            .addComponent(tii, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)))
                    .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                        .addComponent(tid, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addComponent(tdi, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                    .addGroup(layout.createSequentialGroup()
                        .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                            .addComponent(ddd, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                                .addComponent(did, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                                .addComponent(ddi, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                            .addComponent(jLabel4)
                            .addComponent(jLabel6))
                        .addGap(49, 49, 49)
                        .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                            .addComponent(jLabel10)
                            .addComponent(jLabel12)
                            .addComponent(tdd, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                        .addGap(3, 3, 3)))
                .addGap(18, 18, 18)
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jButton3, javax.swing.GroupLayout.PREFERRED_SIZE, 26, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jButton1))
                .addContainerGap())
        );

        pack();
    }// </editor-fold>//GEN-END:initComponents

    private void cdActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_cdActionPerformed

}//GEN-LAST:event_cdActionPerformed

    private void jButton1ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton1ActionPerformed
error=false;

        IngresarLlantas();

if (error==false){
     LlenarPacketeN();
}
if(completo==true){
    // oculto la llantas furgon
dispose();
      
}



    }//GEN-LAST:event_jButton1ActionPerformed
public void IngresarLlantas (){

        try {
            resultado = 0;
            MysqlDataSource dataSource = new MysqlDataSource();
            dataSource.setUser("root");
            dataSource.setPassword("");
            dataSource.setDatabaseName("practicasp8");
            dataSource.setServerName("localhost");
            Connection conexion = (Connection) dataSource.getConnection();
            Statement instruccion;
            ResultSet rs;
            instruccion = (Statement) conexion.createStatement();
          
            // LLANTA UNO

           
                  try {
                num[0] = Integer.parseInt(dii.getText()); // en el arreglo de la posicion uno ingrese el valor de la caja de dii qee seria la
                // llanta derecha izquiera exterior.
            } catch (Exception e) {
                JOptionPane.showMessageDialog(rootPane, "Dato erroneo en la llanta delantera izquierda externa, no es un valor númerico ");
            }
                if(error==false){
            try{
                 instruccion.executeUpdate("insert into llanta (idnumeconomico) values('" + num[0] + "')",Statement.RETURN_GENERATED_KEYS); // me sirve para obter el id de llanta uno
            }catch (Exception e ){
                error=true;
                GeneracionError();
                dii.setText(""+"Error");
                dii.setBackground(Color.red);
                JOptionPane.showMessageDialog(rootPane, "Dato erroneo en la llanta delantera izquierda externa ''"+num[0] +"'' número economico ya existente");
            }
          
            }
          
            

            
          
            // LLANTA DOS

           
                 try {

                num[1] = Integer.parseInt(did.getText());
            } catch (Exception e) {
                JOptionPane.showMessageDialog(rootPane, "Dato erroneo en la llanta delantera izquierda interior, no es un valor númerico ");
            }

                 // este try borra todos los datos anteriormente ya ingresados para evitar errore
                 // asi como tambien para que el usuario localice el error
             if(error==false){    // este if verifica continuidad del error si hay error anteriormente no ingresa nada :D
                 try{
                instruccion.executeUpdate("insert into llanta (idnumeconomico) values ('" + num[1] + "')",Statement.RETURN_GENERATED_KEYS);
                 }catch (Exception e ){
                error=true;
                GeneracionError();
                did.setText(""+"Error");
                did.setBackground(Color.red);
                JOptionPane.showMessageDialog(rootPane, "Dato erroneo en la llanta delantera izquierda interna ''"+num[1] +"'' número economico ya existente");
            }
           
            }
           
            
            //LLANTA TRES

            if (error==false){
                try {
                num[2] = Integer.parseInt(ddi.getText());
            } catch (Exception e) {
                JOptionPane.showMessageDialog(rootPane, "Dato erroneo en la llanta delantera derecha interna, no es un valor númerico");
            }
             try{
                instruccion.executeUpdate("insert into llanta (idnumeconomico) values ('" + num[2] + "')",Statement.RETURN_GENERATED_KEYS);
                 }catch (Exception e ){
                error=true;
                GeneracionError();
                ddi.setText(""+"Error");
                ddi.setBackground(Color.red);
                JOptionPane.showMessageDialog(rootPane, "Dato erroneo en la llanta delantera derecha interna ''"+num[2] +"'' número economico ya existente");
            }

            }
           
           
            
            // LLANTA CUATRO

            if (error==false){
                 try {
                num[3] = Integer.parseInt(ddd.getText());
            } catch (Exception e) {
                JOptionPane.showMessageDialog(rootPane, "Dato erroneo en la llanta delantera derecha externa, no es un valor númerico");
            }
             try{
                instruccion.executeUpdate("insert into llanta (idnumeconomico) values ('" + num[3] + "')",Statement.RETURN_GENERATED_KEYS);
                 }catch (Exception e ){
                error=true;
                GeneracionError();
                ddd.setText(""+"Error");
                ddd.setBackground(Color.red);
                JOptionPane.showMessageDialog(rootPane, "Dato erroneo en la llanta delantera derecha externa ''"+num[3] +"'' número economico ya existente");
            }
            }
           
           
            //LLANTA CINCO
            if(error==false){

                try {
                num[4] = Integer.parseInt(tii.getText());
            } catch (Exception e) {
                JOptionPane.showMessageDialog(rootPane, "Dato erroneo en la llanta trasera izquierda externa, no es un valor númerico");
            }
            try{
                instruccion.executeUpdate("insert into llanta (idnumeconomico) values ('" + num[4] + "')",Statement.RETURN_GENERATED_KEYS);
                 }catch (Exception e ){
                error=true;
                GeneracionError();
                tii.setText(""+"Error");
                tii.setBackground(Color.red);
                JOptionPane.showMessageDialog(rootPane, "Dato erroneo en la llanta trasera izquierda externa ''"+num[4] +"'' número economico ya existente");
            }
            }
            
           
            //LANTA SEIS

            if(error == false){
                  try {
                num[5] = Integer.parseInt(tid.getText());
            } catch (Exception e) {
                JOptionPane.showMessageDialog(rootPane, "Dato erroneo en la llanta trasera izquierda interna, no es un valor númerico");
            }
           try{
                instruccion.executeUpdate("insert into llanta (idnumeconomico) values ('" + num[5] + "')",Statement.RETURN_GENERATED_KEYS);
                 }catch (Exception e ){
                error=true;
                GeneracionError();
                tid.setText(""+"Error");
                tid.setBackground(Color.red);
                JOptionPane.showMessageDialog(rootPane, "Dato erroneo en la llanta trasera izquierda interna ''"+num[5] +"'' número economico ya existente");
            }
            }
          
          
           
            //LLNATA SIETE
            if(error==false){
                 try {
                num[6] = Integer.parseInt(tdi.getText());
            } catch (Exception e) {
                JOptionPane.showMessageDialog(rootPane, "Dato erroneo en la llanta trasera derecha interna, no es un valor númerico");
            }
            try{
                instruccion.executeUpdate("insert into llanta (idnumeconomico) values ('" + num[6] + "')",Statement.RETURN_GENERATED_KEYS);
                 }catch (Exception e ){
                error=true;
                GeneracionError();
                tdi.setText(""+"Error");
                tdi.setBackground(Color.red);
                JOptionPane.showMessageDialog(rootPane, "Dato erroneo en la llanta trasera derecha interna ''"+num[6] +"'' número economico ya existente");
            }
            }
           
           
            //LLANTA OCHO
            if(error==false){
                try {
                num[7] = Integer.parseInt(tdd.getText());
            } catch (Exception e) {
                JOptionPane.showMessageDialog(rootPane, "Dato erroneo en la llanta trasera derecha externa, no es un valor númerico");
            }
           try{
                instruccion.executeUpdate("insert into llanta (idnumeconomico) values ('" + num[7] + "')",Statement.RETURN_GENERATED_KEYS);
                 }catch (Exception e ){
                error=true;
                GeneracionError();
                tdd.setText(""+"Error");
                tdd.setBackground(Color.red);
                JOptionPane.showMessageDialog(rootPane, "Dato erroneo en la llanta trasera derecha externa ''"+num[7] +"'' número economico ya existente");
            }
            }
           
           
         
        } catch (SQLException ex) {
            Logger.getLogger(LlantasFurgon.class.getName()).log(Level.SEVERE, null, ex);
        }

           

   }

  public void GeneracionError (){
        try {
            MysqlDataSource dataSource = new MysqlDataSource();
            dataSource.setUser("root");
            dataSource.setPassword("");
            dataSource.setDatabaseName("practicasp8");
            dataSource.setServerName("localhost");
            Connection conexion = (Connection) dataSource.getConnection();
            Statement instruccion;

            instruccion = (Statement) conexion.createStatement();
            for(int i=0; i!=8;i++){
               instruccion.executeUpdate("DELETE from llanta where idnumeconomico = "+num[i]);
               
            }
            conexion.close();
            instruccion.close();
        } catch (SQLException ex) {
            Logger.getLogger(LlantasFurgon.class.getName()).log(Level.SEVERE, null, ex);
           
        }
  }

   public void LlenarPacketeN (){
     
       {

     try {
           

            MysqlDataSource dataSource = new MysqlDataSource();
            dataSource.setUser("root");
            dataSource.setPassword("");
            dataSource.setDatabaseName("practicasp8");
            dataSource.setServerName("localhost");
             // coneccion
            Connection conexion = (Connection) dataSource.getConnection();
           
            PreparedStatement ps = null;
            ResultSet rs; // para guardar un codigo.

            ps = (PreparedStatement) conexion.prepareStatement("insert into paquetefurgon (dii,did,ddi,ddd,tii,tid,tdi,tdd) values (?,?,?,?,?,?,?,?)",PreparedStatement.RETURN_GENERATED_KEYS);

 //LLANTA UNO
            try {
                 ps.setInt(1,num[0]);
            }catch(Exception e){
                   JOptionPane.showMessageDialog(rootPane, "Dato erroneo Revisar Manual  ");

           } // fin del catch

  // LLANTA DOS



            try {
                 ps.setInt(2,num[1]);
            }catch(Exception e){
                   JOptionPane.showMessageDialog(rootPane, "Dato erroneo Revisar Manual  ");

           } // fin del catch

//LANTA TRES

            try {
                 ps.setInt(3,num[2]);
            }catch(Exception e){
                   JOptionPane.showMessageDialog(rootPane, "Dato erroneo Revisar Manual  ");

           } // fin del catch
 // LLANTA CUATRO


            try {
                 ps.setInt(4,num[3]);
            }catch(Exception e){
                   JOptionPane.showMessageDialog(rootPane, "Dato erroneo Revisar Manual  ");

           } // fin del catch
 //LLANTA CINCO

            try {
                 ps.setInt(5,num[4]);
            }catch(Exception e){
                   JOptionPane.showMessageDialog(rootPane, "Dato erroneo Revisar Manual  ");

           } // fin del catch
 //LANTA SEIS


            try {
                 ps.setInt(6,num[5]);
            }catch(Exception e){
                   JOptionPane.showMessageDialog(rootPane, "Dato erroneo Revisar Manual  ");

           } // fin del catch
   //LLNATA SIETE


            try {
               ps.setInt(7,num[6]);
            }catch(Exception e){
                   JOptionPane.showMessageDialog(rootPane, "Dato erroneo Revisar Manual  ");

           } // fin del catch
 //LLANTA OCHO


            try {
                 ps.setInt(8,num[7]);
            }catch(Exception e){
                   JOptionPane.showMessageDialog(rootPane, "Dato erroneo Revisar Manual  ");

           } // fin del catch

             resultado = ps.executeUpdate();

            rs = ps.getGeneratedKeys();
            while (rs.next()) {
                codpaquete = rs.getInt(1);
                System.out.println(""+codpaquete);
                }

// sonido


try
{
  sonido = null;
  sonido=AudioSystem.getClip();
  sonido.open(AudioSystem.getAudioInputStream(new File(System.getProperty ("user.dir")+"\\src\\SonidosPractica\\Correcto2.wav")));
  sonido.start();




}catch(Exception e)
  {System.out.println(""+e);} // fin

            JOptionPane.showMessageDialog(rootPane, "Dato ingresado exitosamente"+resultado);

               conexion.close(); // cierro la conexion
               ps.close();

             }catch(SQLException e){

            System.out.println("EXCEPCION EN Base de Datos:"+e.toString());
           } // fin del catch
      completo=true; // se a completado el ingreso de llanta
       }
   }

    private void jButton3ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton3ActionPerformed
        dispose();
       NuevoFurgon   va = new NuevoFurgon();
        va.setVisible(true);
        Dimension pantalla, cuadro;
        pantalla = Toolkit.getDefaultToolkit().getScreenSize();
        cuadro = va.getSize();
        va.setLocation(((pantalla.width - cuadro.width)/2),(pantalla.height - cuadro.height)/2);
        va.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
    }//GEN-LAST:event_jButton3ActionPerformed

    private void ddiActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_ddiActionPerformed
        // TODO add your handling code here:
    }//GEN-LAST:event_ddiActionPerformed

    /**
    * @param args the command line arguments
    */
    public static void main(String args[]) {
        java.awt.EventQueue.invokeLater(new Runnable() {
            public void run() {
                new LlantasFurgon().setVisible(true);
            }
        });
    }

    // Variables declaration - do not modify//GEN-BEGIN:variables
    private javax.swing.JTextField cd;
    private javax.swing.JTextField ddd;
    private javax.swing.JTextField ddi;
    private javax.swing.JTextField did;
    private javax.swing.JTextField dii;
    private javax.swing.JButton jButton1;
    private javax.swing.JButton jButton3;
    private javax.swing.JLabel jLabel10;
    private javax.swing.JLabel jLabel11;
    private javax.swing.JLabel jLabel12;
    private javax.swing.JLabel jLabel14;
    private javax.swing.JLabel jLabel2;
    private javax.swing.JLabel jLabel4;
    private javax.swing.JLabel jLabel5;
    private javax.swing.JLabel jLabel6;
    private javax.swing.JLabel jLabel7;
    private javax.swing.JTextField tdd;
    private javax.swing.JTextField tdi;
    private javax.swing.JTextField tid;
    private javax.swing.JTextField tii;
    // End of variables declaration//GEN-END:variables

}
